package com.canyou.system.entity.menu;

import com.canyou.utils.AbstractTreeNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 菜单列表树形模型
 *
 * @author fy
 * @date 2021/5/24 14:40
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "MenuListVO", description = "菜单列表树形模型")
public class MenuListVO extends AbstractTreeNode<MenuListVO> {

    @ApiModelProperty("菜单/按钮名称")
    private String title;

    @ApiModelProperty("菜单URL")
    private String url;

    @ApiModelProperty("权限标识")
    private String permission;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("菜单类型（0菜单  1 按钮(弹出)  2按钮(新开)）")
    private Integer type;

    @ApiModelProperty("菜单排序")
    private Integer sort;

}
